import axios from './http'
import base from './base'
const home = {
  swiper (params) {
    return axios.get(`${base.pro}/api/index/ad`, {
      params
    })
  },
  classify (params) {
    return axios.get(`${base.pro}/api/index/category`, {
      params
    })
  },
  recommend (params) {
    return axios.get(`${base.pro}/api/index/recom`, {
      params
    })
  }
}

export default home
